package pool;

/**
 * 线程工厂
 *
 * @author yezhiqiu
 * @date 2021/10/03
 */
@FunctionalInterface
public interface ThreadFactory {

    /**
     * 新线程
     *
     * @param r r
     * @return {@link Thread}
     */
    Thread newThread(Runnable r);

}
